package com.learning.platform.dto;

import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
public class CommentResponse {
    
    private Long id;
    private Long postId;
    private Long userId;
    private String userName;
    private String userAvatar;
    private Long parentId;
    private String content;
    private Integer likeCount;
    private Boolean isSolution;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    
    // 回复列表
    private List<CommentResponse> replies;
    
    // 用户相关信息
    private Boolean isLiked; // 当前用户是否已点赞
    private Boolean canMarkSolution; // 当前用户是否可标记为解答
}

